import 'package:fish_redux/fish_redux.dart';

import 'action.dart';
import 'state.dart';



Reducer<PwdLoginState > buildReducer() {
  return asReducer(
    <Object, Reducer<PwdLoginState>>{
      PwdLoginAction.loading: _onLoadingAction,
    },
  );
}

PwdLoginState _onLoadingAction(PwdLoginState state, Action action) {
  final PwdLoginState newState = state.clone();
  newState..isLoading = action.payload;
  return newState;
}
